const devUrl = 'ailearning-dev.zhilingsd.com'
const testUrl = 'ailearning-test.zhilingsd.com'
const uatUrl = 'ailearning-uat.zhilingsd.com'
const _prodUrl = 'ailearning.zhilingsd.com'
const getUrl = () => {
  let url = ''
  const accountInfo = wx.getAccountInfoSync();
  const { appId, envVersion } = accountInfo.miniProgram
  console.log(envVersion,'=====envVersion')
  // 智能陪练appId wxdec91a7e7f07ead9
  if (envVersion === 'develop') {
    // 开发版
    url = devUrl
  } else {
    // 体验版/正式版
    url = _prodUrl
  }
  return url
}

const baseUrl = getUrl()

export {
  baseUrl
}